com.supermap.mapping
Class LegendItem
- java.lang.Object
-
- com.supermap.mapping.LegendItem
-
public class LegendItem extends java.lang.Object
Legend subclasses.
-
-
Constructor Summary
Constructors Constructor and Description LegendItem()
Constructs a new legend subkey object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description android.graphics.Bitmap
getBitmap()
Get the legend sub-item corresponding to the bitmap.java.lang.String
getCaption()
Get the legend subkey expressionint
getColor()
Gets LegendItem colorvoid
setBitmap(android.graphics.Bitmap bitmap)
Set the legend sub-bitmap for custom legend (the default legend does not set bitmap information)void
setCaption(java.lang.String caption)
Set the legend subkey representationvoid
setColor(int color)
Sets LegendItem color
-
-
-
Method Detail
-
getBitmap
public android.graphics.Bitmap getBitmap()
Get the legend sub-item corresponding to the bitmap.- Returns:
- Legend Sub-item corresponds to bitmap.
-
getCaption
public java.lang.String getCaption()
Get the legend subkey expression- Returns:
- legend subkey expression.
-
setCaption
public void setCaption(java.lang.String caption)
Set the legend subkey representation- Parameters:
caption
- legend expression.
-
setBitmap
public void setBitmap(android.graphics.Bitmap bitmap)
Set the legend sub-bitmap for custom legend (the default legend does not set bitmap information)- Parameters:
bitmap
- legend bitmap.
-
getColor
public int getColor()
Gets LegendItem color- Returns:
- LegendItem color
-
setColor
public void setColor(int color)
Sets LegendItem color- Parameters:
color
- Sets LegendItem color
-
-